﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="lc_AddArticle.aspx.cs" Inherits="HFWebApp.lawyeruser.lc_AddArticle" %>
<%@ Register src="../Control/top.ascx" tagname="top" tagprefix="uc1" %>
<%@ Register src="../Control/end.ascx" tagname="end" tagprefix="uc2" %>
<%@ Register src="c_LeftMenu.ascx" tagname="c_LeftMenu" tagprefix="uc3" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<title>用户管理中心_红法网</title>
<link href="<%=this.getDemain %>/Style/Style.css" rel="stylesheet" type="text/css" />
<link href="<%=this.getDemain %>/Style/CenterStyle.css" rel="stylesheet" type="text/css" />
<link href="<%=this.getDemain %>/CSS.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=this.getDemain %>/Scripts/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=this.getDemain %>/javascript/SwitchTags.js"></script>
<script type="text/javascript" src="<%=this.getDemain %>/Scripts/WebFunction.js"></script>
<script type="text/javascript">
    $(function () {
        loadProvince('ask_provinceid', 'ask_cityid');
    });

    function pushArticle() {
        var title = $("#title");
        if (title.val() == "") {
            alert('标题不能为空');
            title.focus();
            return false;
        }
        var articletypeid = $("#articletypeid");
        if (articletypeid.val() == "0") {
            alert('请选择文章分类');
            articletypeid.focus();
            return false;
        }
        var content = $("#content");
        if (content.val() == "") {
            alert('请填写文章内容');
            content.focus();
            return false;
        }
        return true;
    }
</script>
    <style type="text/css">
        #Textarea1
        {
            height: 307px;
            width: 490px;
        }
        #content
        {
            height: 163px;
            width: 307px;
        }
    </style>
</head>

<body>
<uc1:top ID="top1" MenuClassID="1" focusLink1="focusLink" runat="server" />
<div id="c_BodyBox">
    <div class="c_LeftMenu">
        <uc3:c_LeftMenu ID="c_LeftMenu1" runat="server" />
    </div>
    <div class="c_RightContent">
        <h3>发布文章</h3>
            <div class="c_MessageBox">
            <ul>
            <form id="Form1" method="post" action="/AjaxSource/AddArticle.ashx" enctype="multipart/form-data" onsubmit="return pushArticle();">
                <li>
                    <div class="c_MB_Left">标题</div>
                    <div class="c_MB_Mid"><input name="title" type="text" id="title" value="" size="32" /></div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left">分类</div>
                    <div class="c_MB_Mid"><select name="articletypeid" id="articletypeid">
                          <option value="0">请选择</option>
                          <option value="1">文集</option>
                          <option value="2">随笔</option>
                          <option value="3">成功案例</option>
                        </select></div>
                    <div class="c_MB_Right"></div>
                </li>
                <li class="liFix2">
                    <div class="c_MB_Left">图片</div>
                    <div class="c_MB_Mid"></div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left">选择图片</div>
                    <div class="c_MB_Mid"><input name="Files" type="file" id="Files" value="" size="32" /></div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left">内容</div>
                    <div class="c_MB_Mid_Fix"><textarea name="content" id="content"></textarea><br /></div>
                </li>
                <li>
                    <div class="c_MB_Left"></div>
                    <div class="c_MB_Mid"><input id="Button2" type="submit" value="保存" /></div>
                    <div class="c_MB_Right"></div>
                </li>
            </form>
            </ul>
        </div>
</div>
</div>
<uc2:end ID="end1" runat="server" />
</body>
</html>
